home *** CD-ROM | disk | FTP | other *** search
- open sequencer00 alias seq1_1 shareable wait
-
- #################################################################
- # set speakers connector for associated ampmixer, need to get
- # handle on associated ampmixer first
- #################################################################
-
- connection seq1_1 query type midi stream alias seq1_1amp1 wait
-
- connector seq1_1amp1 enable type speakers wait
-
- #################################################################
- # load an element from *LOCAL* drive
- #################################################################
-
- load seq1_1 ?AP2PATH?bach.mid wait
-
- #################################################################
- # cue sequencer for play
- #################################################################
-
- cue seq1_1 output wait
-
- #################################################################
- # play sequencer for 5 seconds
- #################################################################
-
- play seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_ABORTED MCI_PLAY
- @PAUSE 5000
-
- #################################################################
- # pause play of sequencer
- #################################################################
-
- pause seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_PAUSE #5
- @WAIT_NOTIFY 5 45000
-
- #################################################################
- # allow play to resume for 5 seconds
- #################################################################
-
- resume seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_RESUME
- @PAUSE 5000
-
- #################################################################
- # release exclusive control of resource
- #################################################################
-
- release seq1_1 wait
-
- #################################################################
- # recover exclusive control of resource
- #################################################################
-
- acquire seq1_1 exclusive notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_ACQUIREDEVICE #7
- @WAIT_NOTIFY 7 45000
- @WAIT_PASSDEVICE seq1_1 45000
-
- #################################################################
- # immediately stop play of sequencer
- #################################################################
-
- stop seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_STOP #8
- @WAIT_NOTIFY 8 45000
-
- #################################################################
- # release exclusive control of resource
- #################################################################
-
- release seq1_1 wait
-
- #################################################################
- # recover exclusive control of resource (cd device/acpa)
- #################################################################
-
- acquire seq1_1 exclusive notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_ACQUIREDEVICE #9
- @WAIT_NOTIFY 9 45000
- @WAIT_PASSDEVICE seq1_1 45000
-
- #################################################################
- # seek to start of media (currently loaded file)
- #################################################################
-
- seek seq1_1 to 0 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_SEEK #10
- @WAIT_NOTIFY 10 45000
-
- #################################################################
- # release exclusive control of resource
- #################################################################
-
- @PAUSE 2000
- release seq1_1 wait
-
- #################################################################
- # recover control of resource (cd device/acpa)
- #################################################################
-
- acquire seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_ACQUIREDEVICE #11
- @WAIT_NOTIFY 11 45000
- @WAIT_PASSDEVICE seq1_1 45000
-
- #################################################################
- # query status then disable speakers connector (disables internal
- # speaker)
- #################################################################
-
- connector seq1_1amp1 query type speakers wait
- =TRUE
-
- connector seq1_1amp1 disable type speakers notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_CONNECTOR #12
- @WAIT_NOTIFY 12 45000
-
- #################################################################
- # play for 3 seconds
- #################################################################
-
- play seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_ABORTED MCI_PLAY
- @PAUSE 3000
-
- #################################################################
- # pause the play
- #################################################################
-
- pause seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_PAUSE #14
- @WAIT_NOTIFY 14 45000
-
- #################################################################
- # release exclusive control of resource
- #################################################################
-
- release seq1_1 wait
-
- #################################################################
- # recover exclusive control of resource (cd device/acpa)
- #################################################################
-
- acquire seq1_1 exclusive notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_ACQUIREDEVICE #15
- @WAIT_NOTIFY 15 45000
-
- #################################################################
- # resume play for 3 seconds
- #################################################################
-
- resume seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_RESUME
- @PAUSE 3000
-
- #################################################################
- # release exclusive control of resource
- #################################################################
-
- release seq1_1 wait
-
- #################################################################
- # recover exclusive control of resource (cd device/acpa)
- #################################################################
-
- acquire seq1_1 exclusive notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_ACQUIREDEVICE #16
- @WAIT_NOTIFY 16 45000
- @WAIT_PASSDEVICE seq1_1 45000
-
- #################################################################
- # stop play
- #################################################################
-
- stop seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_STOP #17
- @WAIT_NOTIFY 17 45000
-
- #################################################################
- # release exclusive control of resource (cd device/acpa)
- #################################################################
-
- release seq1_1 wait
-
- #################################################################
- # instance is inactive. Do some statuses
- # Since this is one process now, instance is NOT inactive...
- #################################################################
-
- status seq1_1 time format wait
- =mmtime
-
- status seq1_1 ready wait
- =TRUE
-
- #################################################################
- # recover control of resource (cd device/acpa)
- #################################################################
-
- acquire seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_ACQUIREDEVICE #18
- @WAIT_NOTIFY 18 45000
- @WAIT_PASSDEVICE seq1_1 45000
-
- #################################################################
- # seek to end of media (currently loaded element)
- #################################################################
-
- seek seq1_1 to end notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_SEEK #19
- @WAIT_NOTIFY 19 45000
-
- #################################################################
- # close sequencer instance
- #################################################################
-
- close seq1_1 notify
- +MM_MCINOTIFY MCI_NOTIFY_SUCCESSFUL MCI_CLOSE #20
- @WAIT_NOTIFY 20 45000
-